package net.zjitc;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component("userp")
@PropertySource("user.properties")
public class UserP {
    @Value("${id}")
    private int id;
    @Value("${name}")
    private String name;
    @Value("${age}")
    private int age;
}
